package main;

//import java.util.Collection;
import java.util.Map;
import java.util.Properties;

public class OneManBand implements Performer {

//	private Collection<Instrument> instruments;
//	private Map<String, Instrument> instruments;
	private Properties instruments;
	
	public OneManBand() {}
	
	//perform
//	@Override
//	public void perform() {
//		for(Instrument instrument : instruments)
//			instrument.play();
//	}
	
//	@Override
//	public void perform() {
//		for(String key : instruments.keySet()) {
//			System.out.print(key+" : ");
//			Instrument instrument = instruments.get(key);
//			instrument.play();
//		}
//	}
	
	@Override
	public void perform() {
//		for(String key : instruments.keySet()) {
//			System.out.print(key+" : ");
//			Instrument instrument = instruments.get(key);
//			instrument.play();
//		}
		
		for(Object key : instruments.keySet()) {
			String s = instruments.getProperty(key.toString());
			System.out.print(key+" : ");
			System.out.println(s);
		}
	}
	
	//set
//	public void setInstruments(Collection<Instrument> instruments) {
//		this.instruments = instruments;
//	}
	
//	public void setInstruments(Map<String, Instrument> instruments) {
//		this.instruments = instruments;
//	}
	
	public void setInstruments(Properties instruments) {
		this.instruments = instruments;
	}

}
